using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Collections;
using System.Collections.Generic;
namespace Kunlun.Models
{
      public class Product_propertys
      {
         [Key]  
         [DisplayName("属性ID")] 
         public int ID { get; set; }
         [Required(ErrorMessage = "产品ID不能空")]  
         [DisplayName("产品ID")] 
         public string Pid { get; set; }
         [DisplayName("产品名称")] 
         public string Pname { get; set; }
         [Required(ErrorMessage = "link to Product_type table不能空")]  
         [DisplayName("link to Product_type table")] 
         public int TypeID { get; set; }
         [DisplayName("属性名称")] 
         public string Cname { get; set; }
         [DisplayName("属性值")] 
         public string Value { get; set; }
         [Required(ErrorMessage = "创建时间不能空")]  
         [DisplayName("创建时间")] 
         public DateTime BeginDate { get; set; }
         [DisplayName("最后修改时间")] 
         public DateTime LastUpdateTime { get; set; }
          [ForeignKey("TypeID")]
         public virtual Product_type Product_types { get; set; }
         } 
} 
